package com.changcheng.project.apppublish.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changcheng.project.apppublish.mapper.AAppPublishMapper;
import com.changcheng.project.apppublish.domain.AAppPublish;
import com.changcheng.project.apppublish.service.IAAppPublishService;
import com.changcheng.common.utils.text.Convert;

/**
 * APP发布Service业务层处理
 * 
 * @author dazhi
 * @date 2020-10-31
 */
@Service
public class AAppPublishServiceImpl implements IAAppPublishService 
{
    @Autowired
    private AAppPublishMapper aAppPublishMapper;

    /**
     * 查询APP发布
     * 
     * @param id APP发布ID
     * @return APP发布
     */
    @Override
    public AAppPublish selectAAppPublishById(Long id)
    {
        return aAppPublishMapper.selectAAppPublishById(id);
    }

    /**
     * 查询APP发布列表
     * 
     * @param aAppPublish APP发布
     * @return APP发布
     */
    @Override
    public List<AAppPublish> selectAAppPublishList(AAppPublish aAppPublish)
    {
        return aAppPublishMapper.selectAAppPublishList(aAppPublish);
    }

    /**
     * 新增APP发布
     * 
     * @param aAppPublish APP发布
     * @return 结果
     */
    @Override
    public int insertAAppPublish(AAppPublish aAppPublish)
    {
        return aAppPublishMapper.insertAAppPublish(aAppPublish);
    }

    /**
     * 修改APP发布
     * 
     * @param aAppPublish APP发布
     * @return 结果
     */
    @Override
    public int updateAAppPublish(AAppPublish aAppPublish)
    {
        return aAppPublishMapper.updateAAppPublish(aAppPublish);
    }

    /**
     * 删除APP发布对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAAppPublishByIds(String ids)
    {
        return aAppPublishMapper.deleteAAppPublishByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除APP发布信息
     * 
     * @param id APP发布ID
     * @return 结果
     */
    @Override
    public int deleteAAppPublishById(Long id)
    {
        return aAppPublishMapper.deleteAAppPublishById(id);
    }
}
